package com.yuw.oop.hw0725;

public class Point {
	// 属性

	/**
	 * x轴坐标
	 */
	private int potX;
	/**
	 * y轴坐标
	 */
	private int potY;

	// 行为

	public void move(int dx, int dy) {
		// 平面点坐标的移动业务逻辑
		System.out.println("点的当前坐标为(" + this.potX + "," + this.potY + ")");
		// 计算移动之后的坐标
		int dxNew = this.potX + dx;
		int dyNew = this.potY + dy;
		System.out.println("点的移动之后的坐标为(" + dxNew + "," + dyNew + ")");
	}

	//////////////////// 以下代码自动生成////////////////////////
	public int getPotX() {
		return potX;
	}

	public void setPotX(int potX) {
		this.potX = potX;
	}

	public int getPotY() {
		return potY;
	}

	public void setPotY(int potY) {
		this.potY = potY;
	}

}
